/**
 * 
 */
package test;

import java.awt.geom.Point2D;

/**
 * @author Xiaohui
 * 
 */
public class gen {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// Random rand = new Random();
		// for (int i = 0; i < 60; i++) {
		// if (i%2!=0){
		// System.out.println(10 * rand.nextDouble());
		// }else{
		// System.out.print(10*rand.nextDouble()+"\t");
		// }
		//			
		// }
		Point2D p1 = new Point2D.Double(8.5, 6.2);
		Point2D p2 = new Point2D.Double(2.1, 3.5);
		Point2D p3 = new Point2D.Double(9.390852139, 5.665106751);
		System.out.println("p1=>p2:" + p1.distance(p2));
		System.out.println("p1=>p3:" + p1.distance(p3));
		System.out.println("p2=>p3:" + p2.distance(p3));

	}

}
